#define _CRT_SECURE_NO_WARNINGS 1


#include<stdio.h>


int main()
{
	int t = 0;
	scanf("%d", &t);
	while (t--)
	{
		int n = 0, i = 0, j = 0, temp = 1;
		scanf("%d", &n);
		for (i = 0; i < n; i++)
		{
			for (j = 0; j < temp; j++)
				printf("*");
			printf("\n");
			temp++;
		}
		printf("\n");
	}
		
	return 0;
}